<%= error_messages_for 'color' %>

<!--[form:color]-->
<p><label for="color_first">First</label><br/>
<%= text_field 'color', 'first'  %><span style="background-color:#<%= @color.first %>;">&nbsp;&nbsp;&nbsp;</span></p>

<p><label for="color_second">Second</label><br/>
<%= text_field 'color', 'second'  %><span style="background-color:#<%= @color.second %>;">&nbsp;&nbsp;&nbsp;</span></p>
<!--[eoform:color]-->

<p><label for="color_brand_id">Brand</label><br/>
	<%= collection_select(:color, :brand_ids, Brand.find(:all, :order => :name), :id, :name, {}, {:multiple=> :true, :name=> 'color[brand_ids][]'}) %>
</p>